﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace Runda.CMS.Order.Entity
{
    [Table(Name = "Out_Customer")]
    public class Customer
    {
        
        [Column( Name = "cCusCode", DbType = "varchar(20) NOT NULL", IsPrimaryKey = true, CanBeNull = false)]
        public String id {
            get;
            set;            
        }

        [Column(Name = "cCusName", DbType = "VarChar(60) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String name { 
            get; 
            set; 
        }

        [Column(Name = "cCCCode", DbType = "VarChar(20)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String code
        {
            get;
            set;
        }

        [Column(Name = "cAddress", DbType = "VarChar(300)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String address
        {
            get;
            set;
        }

        [Column(Name = "cDeptName1", DbType = "VarChar(300) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String deptName
        {
            get;
            set;
        }

        [Column(Name = "cPerson1", DbType = "VarChar(300)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String person
        {
            get;
            set;
        }

        [Column(Name = "cContect1", DbType = "VarChar(300) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String contactor
        {
            get;
            set;
        }

        [Column(Name = "cDeptName2", DbType = "VarChar(300)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String deptName2
        {
            get;
            set;
        }

        [Column(Name = "cPerson2", DbType = "VarChar(300) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String person2
        {
            get;
            set;
        }

        [Column(Name = "cContect2", DbType = "VarChar(300) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String contactor2
        {
            get;
            set;
        }

        [Column(Name = "cMemo1", DbType = "VarChar(500) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String memo1
        {
            get;
            set;
        }

        [Column(Name = "cMemo1", DbType = "VarChar(500) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String memo2
        {
            get;
            set;
        }        

        public void signedIn() { 
        
        }      
    }
}
